package vn.edu.nuce.service;

import org.springframework.transaction.annotation.Transactional;

import vn.edu.nuce.dao.LoginDao;
import vn.edu.nuce.model.User;

@Transactional(readOnly=true)
public class LoginServiceImpl implements LoginService{
	LoginDao loginDao;

	public LoginDao getLoginDao() {
		return loginDao;
	}

	public void setLoginDao(LoginDao loginDao) {
		this.loginDao = loginDao;
	}

	public User getUserName(String tenDangNhap, String matKhau) {
		return getLoginDao().getUserName(tenDangNhap, matKhau);
	}

}
